from fastapi import FastAPI
from apps.user import user
from apps.product import product

app = FastAPI()


@app.get('/')
async def index():
    return {'code': 200, 'message': 'Hello World'}

app.include_router(user, prefix='/user', tags=['user api'])
app.include_router(product, prefix='/product', tags=['product api'])


if __name__ == '__main__':
    import uvicorn
    uvicorn.run('main:app', reload=True)
